#!/usr/bin/python
import sys

for line in sys.stdin:
	for token in line.strip().split(" "):
		if token: print token[0] + '\t1'